package com.demo.test;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.csp.sentinel.annotation.aspectj.integration.service.BarService;

@RestController
public class HelloController {

	private static Logger logger = LoggerFactory.getLogger(HelloController.class);
	@Autowired
	private BarService barService;

	@GetMapping("/test")
    public String anotherBar() {
		for(int i=0; i<10; i++) {
			logger.info(barService.anotherBar(i));
		}
		return "ok";
    }

}